﻿namespace ModuleOne
{
    using MEF_Test.Contracts;

    public class LocalDiskFileHandlerFactory : IDiskFileHandlerFactory
    {
        #region IFileHandlerFactory Members

        /// <summary>
        /// Creates a file handler for the file located to the specified path.
        /// </summary>
        /// <param name="path">The path to the file for which to create a file handler..</param>
        /// <param name="contentType">The type of the content.</param>
        /// <returns>
        /// An <see cref="IDiskFileHandler"/> instance.
        /// </returns>
        public IDiskFileHandler Create(string path, string contentType)
        {
            return new LocalDiskFileHandler(path, contentType);            
        }

        #endregion
    }
}